import * as icons from "@ant-design/icons-vue";
import { createVNode } from "vue";

const Icon = function (props) {
  const { type } = props;
  const IconComponent = icons[type];
  return createVNode(IconComponent);
};

export default Icon;
